import Vue from 'vue'
import App from './App.vue'
import router from './router'

// vant样式引入
import Vant from 'vant'
import 'vant/lib/index.css'

// 引入element-ui组件库
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 动态设置rem加载
import 'amfe-flexible'
// 挂载axios
import http from '@/utils/http'
// 注册全局组件
import MyChannel from '@/components/my-channel'
Vue.component(MyChannel.name, MyChannel)

Vue.prototype.$http = http
Vue.use(ElementUI)

Vue.use(Vant)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
